import request from '@/utils/request'

// 查询动作运行列表
export function listRun(query) {
  return request({
    url: '/action/run/list',
    method: 'get',
    params: query
  })
}

// 查询动作运行详细
export function getRun(id) {
  return request({
    url: '/action/run/' + id,
    method: 'get'
  })
}

// 新增动作运行
export function addRun(data) {
  return request({
    url: '/action/run',
    method: 'post',
    data: data
  })
}

// 修改动作运行
export function updateRun(data) {
  return request({
    url: '/action/run',
    method: 'put',
    data: data
  })
}

// 删除动作运行
export function delRun(id) {
  return request({
    url: '/action/run/' + id,
    method: 'delete'
  })
}
